<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>js11_history</title>
	<meta name="author" content="Stark" />
	<!-- Date: 2018-10-15 -->
	<script type="text/javascript">
		function loc() {
			// 获取文本框中的内容
			var href = document.getElementById("address").value;
			// 直接跳转到某个页面
			window.location.href = href;
		}
	</script>
</head>
<body>
	<a href="#" onclick="loc()">链接到test01</a>
	<input type="text" id="address" />
</body>
</html>

